import {$http} from "@/utils/request/requestConfig.js"

const api = {
	labels:"api/label/getLabels",
	attractions:"api/route/made",
	info:"api/route/attractions/info/{attractionsId}"
}

// 获取景点标签
export function getLabels() {
    return $http.get(api.labels)
}

// 获取景点列表
export function getAttractions(options){
	return $http.get(api.attractions,options)	
}

// 获取景点详情
export function getAttractionInfo(data){
	const info = api.info.replace(/{attractionsId}/,data)
	return $http.get(info,data)
}